package br.com.simtecnologia.access.controll.handlers;

import java.lang.annotation.Annotation;

import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.ioc.ApplicationScoped;
import br.com.caelum.vraptor.ioc.Component;
import br.com.caelum.vraptor.ioc.StereotypeHandler;

@ApplicationScoped
@Component
public class ResourceHandler implements StereotypeHandler {
	private final AccessRouterResolverHandler handler;
	
	public ResourceHandler(AccessRouterResolverHandler handler) {
		this.handler = handler;
	}

	public void handle(Class<?> annotatedType) {
		handler.handle(annotatedType);
	}

	public Class<? extends Annotation> stereotype() {
		return Resource.class;
	}
}